<?php
include "includes/ui.php";

echo headerHTML("master","รายการพัสดุ");

?>

<!-- Moldule: Popup -->
	<div id="popup" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
			<h3 id="myModalLabel"><i class="icon-cog"></i> รายการพัสดุ</h3>
		</div>
	<form class="form-horizontal">
		<div class="modal-body">
				<div class="control-group">
					<label class="control-label" for="inputName"><i class="icon-double-angle-right"></i> รหัสพัสดุ</label>
					<div class="controls">
						<input type="text" id="txtCode" required placeholder="รหัส" />
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" for="inputName"><i class="icon-double-angle-right"></i> ชื่อรายการพัสดุ</label>
					<div class="controls">
						<input type="text" id="txtName" required placeholder="พัสดุ" />
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" for="inputName"><i class="icon-double-angle-right"></i> ประเภทพัสดุ</label>
					<div class="controls">
						<select id="cbotype" style="width:200px !important;"></select>
						</select>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" for="inputName"><i class="icon-double-angle-right"></i> ราคาทุน</label>
					<div class="controls">
						<input type="text" id="txtCost" class='span1 text-right' maxlength="4" value="0">
					</div>
				</div>
				
				<div class="control-group">
					<label class="control-label" for="inputName"><i class="icon-double-angle-right"></i> ราคาขาย</label>
					<div class="controls">
						<input type="text" id="txtPrice"  class='span1 text-right' maxlength="4"  value="0">
					</div>
				</div>
			

				<div class="control-group">
					<label class="control-label" for="inputRepeat"><i class="icon-double-angle-right"></i> สถานะการใช้งาน</label>
					<div class="controls">
                        <label class="radio">
							<span>
								<input type="radio" name="chk" id='chkY'  value="Y" checked> 
							</span>
						   ใช้งาน
						</label>
						  <label class="radio">
							<span>
								<input type="radio" name="chk" id='chkN' value="N" > 
							</span>
						   ยกเลิกใช้งาน
						</label>
					</div>
				</div>
  	 
		</div>

		<div class="modal-footer">
			<button type='submit' class="btn btn-primary" id="btnSave">บันทึก</button>
			<button class="btn" data-dismiss="modal" aria-hidden="true">ยกเลิก</button>
		</div>
</form>
	</div> 
	<!-- / Module: Popup -->

<!-- Live Stats -->
<div class="row-fluid">

    <!-- Pie: Box -->
    <div class="span12">

        <!--  : Top Bar -->
        <div class="top-bar">
            <h3><i class="icon-cog"></i> รายการพัสดุ</h3>
            <div class='tmp' style='float:right'>
			<a href="#"  ><button class="btn"  style='width:80px;' id='btnPrintDraft' tooltip="Add">พิมพ์</button></a>
                <a href="#popup" data-toggle="modal"><button class="btn btn-primary" id="btnAdd" data-original-title="เพิ่มข้อมูลพัสดุ"  rel="tooltip" >เพิ่ม</button></a>
            </div>
        </div>
        <!-- /  : Top Bar -->



        <!-- Pie: Content -->
        <div class="well no-padding">
			<div class="span12">
				<form class="form-horizontal" style="margin-bottom:0px;">
				<div class="row-fluid">
					<div class="control-group" style='border-bottom:0px;'>
						<label class="control-label" for="inputName"><i class="icon-double-angle-right"></i>ชื่อพัสดุ</label>
						<div class="controls">
							 <input type="text" id="txtName_s"   placeholder="พัสดุ" />
							 
							 <span class="help-inline">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;	<b>ประเภทพัสดุ  </b>&nbsp;&nbsp;&nbsp;<select id="cbotype_s" style="width:180px !important;"></select></span>
							  <button class="btn btn-inverse" type='button' id="btnSearch" style='margin-left:50px;' rel="tooltip" title=""   data-original-title="ค้นหาข้อมูล"><i class="icon-search"></i></button> 
						</div>
					</div>
				 
				</div>
				</form>
			</div>

            <table class="data-table" id="resultData">
                <thead style='border-top:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;'> 
                    <tr >
                        <th style='color:#333 !important;width:50px !important;'>#</th>
						<th style='color:#333 !important;'>0</th>
						<th style='color:#333 !important;width:120px !important;' class='text-left'>รหัสพัสดุ</th>
                        <th style='color:#333 !important;' class='text-left'>ชื่อพัสดุ</th>
						<th style='color:#333 !important;'>0</th>
						<th style='color:#333 !important;'>0</th>
						<th style='color:#333 !important;width:120px !important;'>ประเภทพัสดุ</th>
                        <th style='color:#333 !important;width:120px;'>สถานะการใช้งาน</th>
                        <th style='color:#333 !important;width:80px !important;' class="text-center">แก้ไข</th>
                        <th style='color:#333 !important;width:80px !important;' class="text-center">ลบ</th>
                    </tr>
                </thead>
                <tbody>
                    <!--tr class="odd gradeX">
                        <td>1</td>
                        <td>เสื้อพละ Size XL</td>
						 <td>สินค้า</td>
                        <td style='color:green !important;'>ใช้งาน</td>
                        <td class="center"><a href="#popup" data-toggle="modal"><img src='img/edit-file.png' style='cursor:pointer;'/></a></td>
                        <td class="center"><img src='img/delete-file.png'/></td>
                    </tr>
                    <tr class="even gradeC">
                        <td>2</td>
                       <td>เสื้อพละ Size L</td>
						 <td>สินค้า</td>
                        <td style='color:green !important;'>ใช้งาน</td>
                        <td class="center"><a href="#popup" data-toggle="modal"><img src='img/edit-file.png' style='cursor:pointer;'/></a></td>
                        <td class="center"><img src='img/delete-file.png'/></td>
                    </tr>
                    <tr class="odd gradeX">
                        <td>3</td>
                         <td>เสื้อพละ Size M</td>
						 <td>สินค้า</td>
                        <td style='color:green !important;'>ใช้งาน</td>
                        <td class="center"><a href="#popup" data-toggle="modal"><img src='img/edit-file.png' style='cursor:pointer;'/></a></td>
                        <td class="center"><img src='img/delete-file.png'/></td>
                    </tr>
                    <tr class="even gradeA">
                        <td>4</td>
                         <td>เสื้อพละ Size S</td>
						 <td>สินค้า</td>
                        <td style='color:green !important;'>ใช้งาน</td>
                         <td class="center"><a href="#popup" data-toggle="modal"><img src='img/edit-file.png' style='cursor:pointer;'/></a></td>
                        <td class="center"><img src='img/delete-file.png'/></td>
                    </tr>
                    <tr class="odd gradeA">
                        <td>5</td>
                         <td>กางเกงนักเรียน Size S</td>
						 <td>สินค้า</td>
                        <td style='color:red !important;'>ยกเลิก</td>
                        <td class="center"><a href="#popup"   data-toggle="modal"><img src='img/edit-file.png'  style='cursor:pointer;'/></a></td>
                        <td class="center"><img src='img/delete-file.png'/></td>
                    </tr>
                    <tr class="even gradeA">
                        <td>6</td>
                          <td>กางเกงนักเรียน Size M</td>
						 <td>สินค้า</td>
                        <td style='color:green !important;'>ใช้งาน</td>
                        <td class="center"><a href="#popup" data-toggle="modal"><img src='img/edit-file.png' style='cursor:pointer;'/></a></td>
                        <td class="center"><img src='img/delete-file.png'/></td>
                    </tr>
                    <tr class="gradeA">
                        <td>7</td>
                       <td>กางเกงนักเรียน Size L</td>
						 <td>สินค้า</td>
                        <td style='color:green !important;'>ใช้งาน</td>
                        <td class="center"><a href="#popup" data-toggle="modal"><img src='img/edit-file.png' style='cursor:pointer;'/></a></td>
                        <td class="center"><img src='img/delete-file.png'/></td>
                    </tr>
                    <tr class="gradeA">
                        <td>8</td>
                        <td>กางเกงนักเรียน Size XL</td>
						 <td>สินค้า</td>
                        <td style='color:green !important;'>ใช้งาน</td>
                        <td class="center"><a href="#popup" data-toggle="modal"><img src='img/edit-file.png' style='cursor:pointer;'/></a></td>
                        <td class="center"><img src='img/delete-file.png'/></td>
                    </tr-->


                </tbody>

            </table>

        </div>
        <!-- / Pie: Content -->

    </div>
    <!-- / Pie -->

</div>
<!-- / Live Stats -->

<?php
echo footerHTML();
?>

<!-- Javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src='js/jquery.hotkeys.js'></script>
<!--script src='js/fullcalendar.min.js'></script-->
<script src="js/jquery-ui-1.10.2.custom.min.js"></script>
<script src="js/jquery.pajinate.js"></script>
<!--script src="js/jquery.prism.min.js"></script-->
<script src="js/jquery.dataTables.min.js"></script>

<script src="js/jquery.flot.resize.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-wysiwyg.js"></script>
<!--script src="js/bootstrap-typeahead.js"></script-->
<script src="js/jquery.easing.min.js"></script>
<script src="js/jquery.chosen.min.js"></script>
<script src="js/avocado-custom.js"></script>
<script src="js/jqBootstrapValidation.js"></script>
<script src="js/myScript/js_product.js"></script>

</html>